package com.tfsswx.jcyw.cpureaper;

/**
 * @author 张述江
 * @date 2023/8/17
 */
public class CpuTask implements Runnable {
    @Override
    public void run() {
        int num = 0;
        while (true) {
            try {
                num = num + 1;
                if (num == Integer.MAX_VALUE) {
                    System.out.println("reset");
                    num = 0;
                }
                Thread.sleep(1);
            } catch (InterruptedException e) {
            }
        }
    }
}
